package demo3;

public class Crocodile extends Animal implements IAmphibious{
    public Crocodile(String name) {
        super(name);
    }

    @Override
    public void iRun() {
        System.out.println(this.name + "正在跑路....");
    }

    @Override
    public void iSwim() {
        System.out.println(this.name + "正在使用小鳄爪游泳....");
    }

    @Override
    public void eat() {
        System.out.println(this.name + "正在吃鳄鱼肉...");
    }
}
